package com.meila.cms.controller;
 
 
 
import com.meila.cms.web.BaseInfoUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
 
import org.springframework.web.bind.annotation.RequestMapping;
 

@Controller
public class IndexController {
 
    private final String prefix = "index";
	
	 

	@RequestMapping({"/","/index"})
	public String index(Model model) {
		model.addAttribute("baseInfo", BaseInfoUtil.getInstacne().read());
		
		return  prefix+"/index";
	 
	}
	
 
	 
	
	 
 
}
